package cn.sitedev.improved.constructorinject;

import cn.sitedev.improved.ICourse;

/**
 * @author qchen
 * @description 构造器访问注入
 * @date 2020/9/16 0:55
 */
public class Tom {
    private ICourse course;

    public Tom(ICourse course) {
        this.course = course;
    }

    public void study() {
        course.study();
    }
}
